package com.wanxi.fileandio.io;

import java.io.File;
import java.io.FileWriter;
import java.io.IOException;

public class Writer {
    public static void main(String[] args){
        FileWriter fileWriter = null;
        try {
            File file = new File("writer.txt");
            fileWriter = new FileWriter(file,false);
            fileWriter.write("你好啊，把你的发表");
            fileWriter.write("dfhisnndi");
            fileWriter.write("164154115646");
        } catch (IOException e) {
            e.printStackTrace();
        } finally {
            try {
                if (fileWriter!=null)
                fileWriter.close();
            } catch (IOException e) {
                e.printStackTrace();
            }
        }


    }
}
